| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

DefaultRenderStrategy.h
1 // DefaultRenderStrategy.h
3 //
5
6 namespace nkGraphics
7 {
17 class DefaultRenderStrategy final : public RenderStrategy
18 {
19 public :
20
21 // Constructor, destructor
25 DefaultRenderStrategy () noexcept ;
29 virtual ~DefaultRenderStrategy () ;
30
31 // Getters
35 const nkMemory::BufferCast<SlotEntry>& getSlots () const ;
39 float getLodQualityFactor () const ;
43 bool getFrustumCull () const ;
47 bool getOrderQueue () const ;
51 bool getUseLodSystem () const ;
52
53 // Setters
62 void setLodQualityFactor (float value) ;
71 void setFrustumCull (bool value) ;
93 void setOrderQueue (bool value) ;
102 void setUseLodSystem (bool value) ;
103
104 // Execution
105 virtual RenderCommandQueue bakeRenderCommandQueue (Shader* shader, bool transparent) override ;
106
107 // Events
108 virtual void updateAddRenderSlot (Entity* ent, const EntityRenderInfoSlot* slot) override ;
109 virtual void updateEraseRenderSlot (Entity* ent, const EntityRenderInfoSlot* slot) override ;
110 } ;
111 }
nkGraphics::DefaultRenderStrategy::getLodQualityFactor
float getLodQualityFactor() const
nkGraphics::RenderStrategy
A render strategy, used by a render queue to prepare the render commands.
Definition: RenderStrategy.h:17
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:16
nkGraphics::DefaultRenderStrategy::getFrustumCull
bool getFrustumCull() const
nkGraphics::DefaultRenderStrategy::bakeRenderCommandQueue
virtual RenderCommandQueue bakeRenderCommandQueue(Shader *shader, bool transparent) override
nkGraphics::DefaultRenderStrategy::setLodQualityFactor
void setLodQualityFactor(float value)
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkGraphics::RenderCommandQueue
A queue of rendering commands.
Definition: RenderCommandQueue.h:12
nkGraphics::DefaultRenderStrategy::setUseLodSystem
void setUseLodSystem(bool value)
nkGraphics::DefaultRenderStrategy
The default render strategy used within the component.
Definition: DefaultRenderStrategy.h:18
nkGraphics::DefaultRenderStrategy::getSlots
const nkMemory::BufferCast< SlotEntry > & getSlots() const
nkGraphics::DefaultRenderStrategy::DefaultRenderStrategy
DefaultRenderStrategy() noexcept
nkGraphics::DefaultRenderStrategy::updateAddRenderSlot
virtual void updateAddRenderSlot(Entity *ent, const EntityRenderInfoSlot *slot) override
nkGraphics::DefaultRenderStrategy::setFrustumCull
void setFrustumCull(bool value)
nkGraphics::EntityRenderInfoSlot
A slot within the render information.
Definition: EntityRenderInfoSlot.h:14
nkGraphics::DefaultRenderStrategy::setOrderQueue
void setOrderQueue(bool value)
nkGraphics::DefaultRenderStrategy::getUseLodSystem
bool getUseLodSystem() const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::DefaultRenderStrategy::getOrderQueue
bool getOrderQueue() const
nkGraphics::DefaultRenderStrategy::updateEraseRenderSlot
virtual void updateEraseRenderSlot(Entity *ent, const EntityRenderInfoSlot *slot) override
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7